import 'package:json_annotation/json_annotation.dart'; 
import 'package:lai_zhan/common/model/shopResult/shop_result.dart';
import 'package:lai_zhan/common/model/userResult/user_result.dart';

part 'course_result.g.dart';


@JsonSerializable()
  class CourseResult extends Object {

  @JsonKey(name: 'cid')
  String cid;

  @JsonKey(name: 'shopResult')
  ShopResult shopResult;

  @JsonKey(name: 'userResult')
  UserResult userResult;

  @JsonKey(name: 'cname')
  String cname;

  @JsonKey(name: 'descr')
  String descr;

  @JsonKey(name: 'cpicurl')
  String cpicurl;

  @JsonKey(name: 'udef')
  String udef;

  @JsonKey(name: 'limit')
  int limit;

  @JsonKey(name: 'left')
  int left;

  @JsonKey(name: 'period')
  int period;

  @JsonKey(name: 'pcost')
  double pcost;

  @JsonKey(name: 'ptime')
  String ptime;

  CourseResult(this.cid,this.shopResult,this.userResult,this.cname,this.descr,this.cpicurl,this.udef,this.limit,this.left,this.period,this.pcost,this.ptime,);

  factory CourseResult.fromJson(Map<String, dynamic> srcJson) => _$CourseResultFromJson(srcJson);

  Map<String, dynamic> toJson() => _$CourseResultToJson(this);

}


  
